#include <iostream>
#include <sys/types.h>
#include <sys/stat.h>
#include "comm.hpp"

using namespace std;

int main()
{
    int i = 0;
    while(i < 3)
    {
        mkfifo(vf[i].c_str(), mode);
        i++;
    }

    i = 0;
    while(i < 3)
    {
        int wfd = open(vf[i].c_str(), O_RDONLY);
        cout << wfd << endl;
        i++;
    }

    return 0;
}